<?php
session_start();
require_once (FRAMEWORK_PATH . "/class/db/ez_sql_core.php");
require_once (FRAMEWORK_PATH . "/class/db/ez_sql_mysql.php");
require_once (FRAMEWORK_PATH . "/class/db/ez_results.smarty.php");
require_once (FRAMEWORK_PATH . "/third/umeng_push/notify.php");

define('START_TIME', time());
define('IS_POST', (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST'));
define('PHP_SELF',  htmlentities(isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']));
define('VERSION', '1.0');
define('RELEASE', '20150125');
define('WX_LOGIN', false); //使用微信端自动登录
define('RSA_POST', false); //POST使用RSA加密传输,具体查看global的form_datas函数

//$dbuser, $dbpassword, $dbname
$db = new ezSQL_mysql('root','zhangdong','jifen','localhost');
$db->query('set names utf8');
$table_prefix = 'jf_'; //表名前缀
//域名
$domain = "http://bangfang.softstao.com";
//$domain = "http://landuo";
$image_domain = "http://bangfang.b0.upaiyun.com";
date_default_timezone_set('Asia/Chongqing');

$weixin_appid = "wx52eb4e0e80b09227";
$weixin_appsecret = "4af47bf8faa92e834cec1ce6a02f6117";
$weixin_token = "token_wuxinghui";
$weixin_encodingaeskey = "6B9IoFV7LTQFmJN0tQrnMvFGPPtuOusjhuUAnqp0wa1";

//友盟消息推送接口的KEY
$push_ios_app_key = '57eb7c34e0f55a99f2001bc0';
$push_ios_master_secret = 'wgznx7iqmz3hilupvhxwz8i9e89htgeg';
$push_android_app_key = '566518cf67e58e0ed1002d7d';
$push_android_master_secret = 'lwvt6nkhojwmrqs8tilcqn1oxoxn5oer';
$notify = new notify($push_ios_app_key, $push_ios_master_secret, $push_android_app_key, $push_android_master_secret);

//环信
$easemob_org_name = "zhangdong";
$easemob_app_name = "bangfang";
$easemob_app_key = "zhangdong#bangfang";
$easemob_client_id = "YXA6qYPA8IVUEeasoikY7RplOg";
$easemob_client_secret = "YXA6rLZvucMSu-mRjdDi0CLZdXGwKHs";

//yuntongxun sms
$sms_accountSid= '8a48b5515018a0f401505ace97627ad6';
$sms_accountToken= 'f38d2777756f4be2aeb84e10fadaa323';
$sms_appId='8a216da85805311d01580a59cd2203e6';

//又拍云
$upyun_bucketname = "bangfang";
$upyun_operator_name = "bangfang";
$upyun_operator_pwd = "nQDmzVPt2XW4sx";
$upyun_domain = "http://bangfang.b0.upaiyun.com";

//每分钟每个ip最多可以发送短信的数量
$max_sms_ip_minute = 10;

